<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="addModule">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">

            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">Modal title</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="demo-form2" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">
                    <!-- userName -->
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align" for="userName">UserName <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="text" v-model="module.userName" required="required" class="form-control "
                                   id="userName">
                        </div>
                    </div>
                    <!-- password -->
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align" for="password">Password <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="password" v-model="module.password" required="required" class="form-control "
                                   id="password">
                        </div>
                    </div>
                    <!-- roles -->
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align" for="first_name">Roles <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <span v-for="item in roles">
                                <input
                                       type="checkbox"
                                       :key="item.roleId"
                                       :value="item.roleId"
                                       v-model="module.roles"/>{{item.roleName}}
                            </span>
                        </div>
                    </div>
                    <!-- userImage -->
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align" for="first_name">UserImage
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="hidden" v-model="module.userImage">
                            <input id="uploadImage" name="file" type="file" multiple="true">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button @click="addModule()" type="button" class="btn btn-primary">Save changes</button>
            </div>

        </div>
    </div>
</div>